<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>查看已发通知对方阅读状态</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.1.min.js"></script>
	<script src="<%=basePath%>/js/table.js" type="text/javascript"></script>
	<script src="<%=basePath%>/js/checkbox1.js" type="text/javascript"></script>
	<script src="<%=basePath%>/js/oa.js" type="text/javascript"></script>
   	<script type="text/javascript" src="<%=basePath%>/js/dbdialog/lhgdialog.min.js<%=Util.LHGDIALOG%>"></script>
   	<SCRIPT type="text/javascript">
   		$(function() {
			$("input[name='goback']").click(function() {	
				window.location.href='<%=basePath%>/oa/notice_noticeList.action?num=${str_num1}&size=${str_size1}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }';
			});
		});
   	</SCRIPT>
	
  </head>
  
  <body>
  	<div class="body-box">
  		<div class="map">
			<div class="map_con">
				您当前的位置：协同办公 &gt; 公告通知 &gt; 查看已发通知阅读状态
			</div>
		</div>
		
		<div id="container">			
			<div class="top_search">
			    <fieldset>
				    <legend>
				  		<div class="search">查询条件</div>
				  	</legend>
				    <form action="<%=basePath%>/oa/notice_noticeReadList.action" method="post">				    
				    	阅读状态：
				    	<s:select list="#{0:'==未读==',1:'==已读=='}" listKey="key" listValue="value" name="readType" headerKey="" headerValue="==所有=="></s:select>
				    	<input type="submit" value="查 询" class="link_input" name="btnsx">
				    	<input type="hidden" value="${id }" class="link_input" name="id">
				    	<input type="hidden" value="${str_num1 }" class="link_input" name="str_num1">
				    	<input type="hidden" value="${str_size1 }" class="link_input" name="str_size1">
				    	<input type="hidden" value="${beginTime }" class="link_input" name="beginTime">
				    	<input type="hidden" value="${endTime }" class="link_input" name="endTime">
				    	<input type="hidden" value="${keyWord }" class="link_input" name="keyWord">
				    </form>
				</fieldset>
			</div>
			<s:set name="userGrade" value="#session.adminuser.tbUserRole.tbUserGrade.id"></s:set>
		    <table border="0" cellpadding="0" cellspacing="0" class="mytable">
		    	 <tr class="fixedHeaderTr">
		    		<th width="10%">序列</th>
		    		<th width="30%">
						<s:if test="%{#userGrade==2}"><!-- 安办 -->
							管理机构
						</s:if>						
						<s:else><!-- 其他-->
							管理机构/企业
						</s:else>					
		    		</th>
		    		<th width="15%">
						<s:if test="%{#userGrade==2}"><!-- 安办 -->
							所属单位
						</s:if>						
						<s:else><!-- 其他 -->
							所属单位/所属县(市、区)、开发区行业/街道
						</s:else>	
		    		</th>
		    		<th width="15%">
						<s:if test="%{#userGrade==2}"><!-- 安办 -->
							所属单位
						</s:if>						
						<s:else><!--其他 -->
							所属部门/企业所属村/社区
						</s:else>		
		    		</th> 
		    		<th width="10%">阅读状态</th>
		    		<th width="10%">阅读时间</th>	
		    		<s:if test="%{notice.isNote==1}">
		    			<th width="10%">短信发送状态</th>
		    		</s:if>
		    	</tr>
		    	<s:if test="%{noticeUserList.size>0}">
		    		<s:iterator value="noticeUserList" id="noti" status="x">
				    	<tr>
				    		<td align="center">${x.index+1+(page.num-1)*page.size}</td>	
				    		<td align="center">
								<s:if test="%{#noti.userType==0}"><font color="green">${noti.tbUser.userRealName}(管理员)</font></s:if><!-- 管理机构 -->
								<s:else>${noti.tbCorpInfo.corpName}(企业)</s:else><!-- 企业 -->
							</td>		
							
							<td align="center">
								<s:if test="%{#noti.userType==0}">${noti.tbUser.tbUserUnit.deptName}</s:if><!-- 管理机构 -->
								<s:else>${noti.tbCorpInfo.tbCounty.deptName} ${noti.tbCorpInfo.tbStreet.deptName}</s:else><!-- 企业 -->
							</td>			
							
							<td align="center">
								<s:if test="%{#noti.userType==0}">${noti.tbUser.tbUserDept.deptName}</s:if><!-- 管理机构 -->
								<s:else>${noti.tbCorpInfo.tbVillage.deptName}</s:else><!-- 企业 -->
							</td>				    		
							
							<td align="center" >${noti.isRead==0?'<font color="red">未读</font>':'<font color="green">已读</font>' }</td>				    		
							<td align="center"><s:date name="#noti.readTime" format="yyyy-MM-dd HH:mm"/> </td>
							<s:if test="%{notice.isNote==1}">
								<td align="center">${noti.isNot==0?'<font color="red">未发送</font>':'<font color="green">已发送</font>'}</td>	
							</s:if>		
				    	</tr>
		    		</s:iterator>
			    </s:if>
			    <s:else>
			    	<tr><td colspan="6">没有数据</td></tr>
			    </s:else>
			    <tr>
			    	<td colspan="6">
			    		<input type="button" class="link_input" value="返 回" name="goback"/>
			    	</td>
			    </tr>
		    </table>
		    <div class="page">
		    	<jsp:include flush="true" page="../share/fenye.jsp">
				    <jsp:param name="url4page" value="/oa/notice_noticeReadList.action?id=${id }&readType=${readType}&str_num1=${str_num1 }&str_size1=${str_size1 }&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }" />
			    </jsp:include>
		    </div>		    
		</div>
		<div class="right_bottom">
			<div style="width:11px;float:left"><img src="<%=basePath%>/images/right_bottom.gif"/></div>
			<div style="width:16px;float:right"><img src="<%=basePath%>/images/right_rbottom.gif"/></div>
		</div>
	</div>
  </body>
</html>
